<template>
  <basic-container>
    <avue-crud
        v-bind="bindVal"
        v-on="onEvent"
        :page.sync="page"
        v-model="startForm">
      <template v-for="(column,index) in columns" :slot="column.prop" slot-scope="{type,size,row}">
        <component :is="column.columnComponent" :row="row" :rowKey="column.prop" :column="column" :key="row.id+':'+index"></component>
      </template>
      <template slot-scope="{type,size,row}" slot="menuBtn">
        <el-dropdown-item icon="el-icon-edit" :size="size" @click.native="handlerTask(row)" :type="type">处理任务
        </el-dropdown-item>
      </template>
    </avue-crud>
    <user-handler-task ref="userHandlerTask" @refresh="refreshChange"></user-handler-task>
  </basic-container>
</template>

<script>
import startCrud from "@/mixins/start-crud.js"
import userHandlerTask from "@/views/start/activiti/userTask/userHandlerTask";

export default startCrud({
  components: {
    userHandlerTask
  },
  methods: {
    handlerTask(row) {
      this.$refs.userHandlerTask.show(row);
    }
  }
}, {name: "activiti/userTask", list: "allTaskPage"})
</script>
<style scoped>

</style>
